package com.sunny.fetch.pojo;

import java.util.ArrayList;
import java.util.List;

public class FFutHoldingExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FFutHoldingExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTidIsNull() {
            addCriterion("tid is null");
            return (Criteria) this;
        }

        public Criteria andTidIsNotNull() {
            addCriterion("tid is not null");
            return (Criteria) this;
        }

        public Criteria andTidEqualTo(Long value) {
            addCriterion("tid =", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotEqualTo(Long value) {
            addCriterion("tid <>", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThan(Long value) {
            addCriterion("tid >", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThanOrEqualTo(Long value) {
            addCriterion("tid >=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThan(Long value) {
            addCriterion("tid <", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThanOrEqualTo(Long value) {
            addCriterion("tid <=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidIn(List<Long> values) {
            addCriterion("tid in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotIn(List<Long> values) {
            addCriterion("tid not in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidBetween(Long value1, Long value2) {
            addCriterion("tid between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotBetween(Long value1, Long value2) {
            addCriterion("tid not between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTradeDateIsNull() {
            addCriterion("trade_date is null");
            return (Criteria) this;
        }

        public Criteria andTradeDateIsNotNull() {
            addCriterion("trade_date is not null");
            return (Criteria) this;
        }

        public Criteria andTradeDateEqualTo(String value) {
            addCriterion("trade_date =", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateNotEqualTo(String value) {
            addCriterion("trade_date <>", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateGreaterThan(String value) {
            addCriterion("trade_date >", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateGreaterThanOrEqualTo(String value) {
            addCriterion("trade_date >=", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateLessThan(String value) {
            addCriterion("trade_date <", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateLessThanOrEqualTo(String value) {
            addCriterion("trade_date <=", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateLike(String value) {
            addCriterion("trade_date like", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateNotLike(String value) {
            addCriterion("trade_date not like", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateIn(List<String> values) {
            addCriterion("trade_date in", values, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateNotIn(List<String> values) {
            addCriterion("trade_date not in", values, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateBetween(String value1, String value2) {
            addCriterion("trade_date between", value1, value2, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateNotBetween(String value1, String value2) {
            addCriterion("trade_date not between", value1, value2, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andSymbolIsNull() {
            addCriterion("symbol is null");
            return (Criteria) this;
        }

        public Criteria andSymbolIsNotNull() {
            addCriterion("symbol is not null");
            return (Criteria) this;
        }

        public Criteria andSymbolEqualTo(String value) {
            addCriterion("symbol =", value, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolNotEqualTo(String value) {
            addCriterion("symbol <>", value, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolGreaterThan(String value) {
            addCriterion("symbol >", value, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolGreaterThanOrEqualTo(String value) {
            addCriterion("symbol >=", value, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolLessThan(String value) {
            addCriterion("symbol <", value, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolLessThanOrEqualTo(String value) {
            addCriterion("symbol <=", value, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolLike(String value) {
            addCriterion("symbol like", value, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolNotLike(String value) {
            addCriterion("symbol not like", value, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolIn(List<String> values) {
            addCriterion("symbol in", values, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolNotIn(List<String> values) {
            addCriterion("symbol not in", values, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolBetween(String value1, String value2) {
            addCriterion("symbol between", value1, value2, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolNotBetween(String value1, String value2) {
            addCriterion("symbol not between", value1, value2, "symbol");
            return (Criteria) this;
        }

        public Criteria andBrokerIsNull() {
            addCriterion("broker is null");
            return (Criteria) this;
        }

        public Criteria andBrokerIsNotNull() {
            addCriterion("broker is not null");
            return (Criteria) this;
        }

        public Criteria andBrokerEqualTo(String value) {
            addCriterion("broker =", value, "broker");
            return (Criteria) this;
        }

        public Criteria andBrokerNotEqualTo(String value) {
            addCriterion("broker <>", value, "broker");
            return (Criteria) this;
        }

        public Criteria andBrokerGreaterThan(String value) {
            addCriterion("broker >", value, "broker");
            return (Criteria) this;
        }

        public Criteria andBrokerGreaterThanOrEqualTo(String value) {
            addCriterion("broker >=", value, "broker");
            return (Criteria) this;
        }

        public Criteria andBrokerLessThan(String value) {
            addCriterion("broker <", value, "broker");
            return (Criteria) this;
        }

        public Criteria andBrokerLessThanOrEqualTo(String value) {
            addCriterion("broker <=", value, "broker");
            return (Criteria) this;
        }

        public Criteria andBrokerLike(String value) {
            addCriterion("broker like", value, "broker");
            return (Criteria) this;
        }

        public Criteria andBrokerNotLike(String value) {
            addCriterion("broker not like", value, "broker");
            return (Criteria) this;
        }

        public Criteria andBrokerIn(List<String> values) {
            addCriterion("broker in", values, "broker");
            return (Criteria) this;
        }

        public Criteria andBrokerNotIn(List<String> values) {
            addCriterion("broker not in", values, "broker");
            return (Criteria) this;
        }

        public Criteria andBrokerBetween(String value1, String value2) {
            addCriterion("broker between", value1, value2, "broker");
            return (Criteria) this;
        }

        public Criteria andBrokerNotBetween(String value1, String value2) {
            addCriterion("broker not between", value1, value2, "broker");
            return (Criteria) this;
        }

        public Criteria andVolIsNull() {
            addCriterion("vol is null");
            return (Criteria) this;
        }

        public Criteria andVolIsNotNull() {
            addCriterion("vol is not null");
            return (Criteria) this;
        }

        public Criteria andVolEqualTo(Integer value) {
            addCriterion("vol =", value, "vol");
            return (Criteria) this;
        }

        public Criteria andVolNotEqualTo(Integer value) {
            addCriterion("vol <>", value, "vol");
            return (Criteria) this;
        }

        public Criteria andVolGreaterThan(Integer value) {
            addCriterion("vol >", value, "vol");
            return (Criteria) this;
        }

        public Criteria andVolGreaterThanOrEqualTo(Integer value) {
            addCriterion("vol >=", value, "vol");
            return (Criteria) this;
        }

        public Criteria andVolLessThan(Integer value) {
            addCriterion("vol <", value, "vol");
            return (Criteria) this;
        }

        public Criteria andVolLessThanOrEqualTo(Integer value) {
            addCriterion("vol <=", value, "vol");
            return (Criteria) this;
        }

        public Criteria andVolIn(List<Integer> values) {
            addCriterion("vol in", values, "vol");
            return (Criteria) this;
        }

        public Criteria andVolNotIn(List<Integer> values) {
            addCriterion("vol not in", values, "vol");
            return (Criteria) this;
        }

        public Criteria andVolBetween(Integer value1, Integer value2) {
            addCriterion("vol between", value1, value2, "vol");
            return (Criteria) this;
        }

        public Criteria andVolNotBetween(Integer value1, Integer value2) {
            addCriterion("vol not between", value1, value2, "vol");
            return (Criteria) this;
        }

        public Criteria andVolChgIsNull() {
            addCriterion("vol_chg is null");
            return (Criteria) this;
        }

        public Criteria andVolChgIsNotNull() {
            addCriterion("vol_chg is not null");
            return (Criteria) this;
        }

        public Criteria andVolChgEqualTo(Integer value) {
            addCriterion("vol_chg =", value, "volChg");
            return (Criteria) this;
        }

        public Criteria andVolChgNotEqualTo(Integer value) {
            addCriterion("vol_chg <>", value, "volChg");
            return (Criteria) this;
        }

        public Criteria andVolChgGreaterThan(Integer value) {
            addCriterion("vol_chg >", value, "volChg");
            return (Criteria) this;
        }

        public Criteria andVolChgGreaterThanOrEqualTo(Integer value) {
            addCriterion("vol_chg >=", value, "volChg");
            return (Criteria) this;
        }

        public Criteria andVolChgLessThan(Integer value) {
            addCriterion("vol_chg <", value, "volChg");
            return (Criteria) this;
        }

        public Criteria andVolChgLessThanOrEqualTo(Integer value) {
            addCriterion("vol_chg <=", value, "volChg");
            return (Criteria) this;
        }

        public Criteria andVolChgIn(List<Integer> values) {
            addCriterion("vol_chg in", values, "volChg");
            return (Criteria) this;
        }

        public Criteria andVolChgNotIn(List<Integer> values) {
            addCriterion("vol_chg not in", values, "volChg");
            return (Criteria) this;
        }

        public Criteria andVolChgBetween(Integer value1, Integer value2) {
            addCriterion("vol_chg between", value1, value2, "volChg");
            return (Criteria) this;
        }

        public Criteria andVolChgNotBetween(Integer value1, Integer value2) {
            addCriterion("vol_chg not between", value1, value2, "volChg");
            return (Criteria) this;
        }

        public Criteria andLongHldIsNull() {
            addCriterion("long_hld is null");
            return (Criteria) this;
        }

        public Criteria andLongHldIsNotNull() {
            addCriterion("long_hld is not null");
            return (Criteria) this;
        }

        public Criteria andLongHldEqualTo(Integer value) {
            addCriterion("long_hld =", value, "longHld");
            return (Criteria) this;
        }

        public Criteria andLongHldNotEqualTo(Integer value) {
            addCriterion("long_hld <>", value, "longHld");
            return (Criteria) this;
        }

        public Criteria andLongHldGreaterThan(Integer value) {
            addCriterion("long_hld >", value, "longHld");
            return (Criteria) this;
        }

        public Criteria andLongHldGreaterThanOrEqualTo(Integer value) {
            addCriterion("long_hld >=", value, "longHld");
            return (Criteria) this;
        }

        public Criteria andLongHldLessThan(Integer value) {
            addCriterion("long_hld <", value, "longHld");
            return (Criteria) this;
        }

        public Criteria andLongHldLessThanOrEqualTo(Integer value) {
            addCriterion("long_hld <=", value, "longHld");
            return (Criteria) this;
        }

        public Criteria andLongHldIn(List<Integer> values) {
            addCriterion("long_hld in", values, "longHld");
            return (Criteria) this;
        }

        public Criteria andLongHldNotIn(List<Integer> values) {
            addCriterion("long_hld not in", values, "longHld");
            return (Criteria) this;
        }

        public Criteria andLongHldBetween(Integer value1, Integer value2) {
            addCriterion("long_hld between", value1, value2, "longHld");
            return (Criteria) this;
        }

        public Criteria andLongHldNotBetween(Integer value1, Integer value2) {
            addCriterion("long_hld not between", value1, value2, "longHld");
            return (Criteria) this;
        }

        public Criteria andLongChgIsNull() {
            addCriterion("long_chg is null");
            return (Criteria) this;
        }

        public Criteria andLongChgIsNotNull() {
            addCriterion("long_chg is not null");
            return (Criteria) this;
        }

        public Criteria andLongChgEqualTo(Integer value) {
            addCriterion("long_chg =", value, "longChg");
            return (Criteria) this;
        }

        public Criteria andLongChgNotEqualTo(Integer value) {
            addCriterion("long_chg <>", value, "longChg");
            return (Criteria) this;
        }

        public Criteria andLongChgGreaterThan(Integer value) {
            addCriterion("long_chg >", value, "longChg");
            return (Criteria) this;
        }

        public Criteria andLongChgGreaterThanOrEqualTo(Integer value) {
            addCriterion("long_chg >=", value, "longChg");
            return (Criteria) this;
        }

        public Criteria andLongChgLessThan(Integer value) {
            addCriterion("long_chg <", value, "longChg");
            return (Criteria) this;
        }

        public Criteria andLongChgLessThanOrEqualTo(Integer value) {
            addCriterion("long_chg <=", value, "longChg");
            return (Criteria) this;
        }

        public Criteria andLongChgIn(List<Integer> values) {
            addCriterion("long_chg in", values, "longChg");
            return (Criteria) this;
        }

        public Criteria andLongChgNotIn(List<Integer> values) {
            addCriterion("long_chg not in", values, "longChg");
            return (Criteria) this;
        }

        public Criteria andLongChgBetween(Integer value1, Integer value2) {
            addCriterion("long_chg between", value1, value2, "longChg");
            return (Criteria) this;
        }

        public Criteria andLongChgNotBetween(Integer value1, Integer value2) {
            addCriterion("long_chg not between", value1, value2, "longChg");
            return (Criteria) this;
        }

        public Criteria andShortHldIsNull() {
            addCriterion("short_hld is null");
            return (Criteria) this;
        }

        public Criteria andShortHldIsNotNull() {
            addCriterion("short_hld is not null");
            return (Criteria) this;
        }

        public Criteria andShortHldEqualTo(Integer value) {
            addCriterion("short_hld =", value, "shortHld");
            return (Criteria) this;
        }

        public Criteria andShortHldNotEqualTo(Integer value) {
            addCriterion("short_hld <>", value, "shortHld");
            return (Criteria) this;
        }

        public Criteria andShortHldGreaterThan(Integer value) {
            addCriterion("short_hld >", value, "shortHld");
            return (Criteria) this;
        }

        public Criteria andShortHldGreaterThanOrEqualTo(Integer value) {
            addCriterion("short_hld >=", value, "shortHld");
            return (Criteria) this;
        }

        public Criteria andShortHldLessThan(Integer value) {
            addCriterion("short_hld <", value, "shortHld");
            return (Criteria) this;
        }

        public Criteria andShortHldLessThanOrEqualTo(Integer value) {
            addCriterion("short_hld <=", value, "shortHld");
            return (Criteria) this;
        }

        public Criteria andShortHldIn(List<Integer> values) {
            addCriterion("short_hld in", values, "shortHld");
            return (Criteria) this;
        }

        public Criteria andShortHldNotIn(List<Integer> values) {
            addCriterion("short_hld not in", values, "shortHld");
            return (Criteria) this;
        }

        public Criteria andShortHldBetween(Integer value1, Integer value2) {
            addCriterion("short_hld between", value1, value2, "shortHld");
            return (Criteria) this;
        }

        public Criteria andShortHldNotBetween(Integer value1, Integer value2) {
            addCriterion("short_hld not between", value1, value2, "shortHld");
            return (Criteria) this;
        }

        public Criteria andShortChgIsNull() {
            addCriterion("short_chg is null");
            return (Criteria) this;
        }

        public Criteria andShortChgIsNotNull() {
            addCriterion("short_chg is not null");
            return (Criteria) this;
        }

        public Criteria andShortChgEqualTo(Integer value) {
            addCriterion("short_chg =", value, "shortChg");
            return (Criteria) this;
        }

        public Criteria andShortChgNotEqualTo(Integer value) {
            addCriterion("short_chg <>", value, "shortChg");
            return (Criteria) this;
        }

        public Criteria andShortChgGreaterThan(Integer value) {
            addCriterion("short_chg >", value, "shortChg");
            return (Criteria) this;
        }

        public Criteria andShortChgGreaterThanOrEqualTo(Integer value) {
            addCriterion("short_chg >=", value, "shortChg");
            return (Criteria) this;
        }

        public Criteria andShortChgLessThan(Integer value) {
            addCriterion("short_chg <", value, "shortChg");
            return (Criteria) this;
        }

        public Criteria andShortChgLessThanOrEqualTo(Integer value) {
            addCriterion("short_chg <=", value, "shortChg");
            return (Criteria) this;
        }

        public Criteria andShortChgIn(List<Integer> values) {
            addCriterion("short_chg in", values, "shortChg");
            return (Criteria) this;
        }

        public Criteria andShortChgNotIn(List<Integer> values) {
            addCriterion("short_chg not in", values, "shortChg");
            return (Criteria) this;
        }

        public Criteria andShortChgBetween(Integer value1, Integer value2) {
            addCriterion("short_chg between", value1, value2, "shortChg");
            return (Criteria) this;
        }

        public Criteria andShortChgNotBetween(Integer value1, Integer value2) {
            addCriterion("short_chg not between", value1, value2, "shortChg");
            return (Criteria) this;
        }

        public Criteria andExchangeIsNull() {
            addCriterion("exchange is null");
            return (Criteria) this;
        }

        public Criteria andExchangeIsNotNull() {
            addCriterion("exchange is not null");
            return (Criteria) this;
        }

        public Criteria andExchangeEqualTo(String value) {
            addCriterion("exchange =", value, "exchange");
            return (Criteria) this;
        }

        public Criteria andExchangeNotEqualTo(String value) {
            addCriterion("exchange <>", value, "exchange");
            return (Criteria) this;
        }

        public Criteria andExchangeGreaterThan(String value) {
            addCriterion("exchange >", value, "exchange");
            return (Criteria) this;
        }

        public Criteria andExchangeGreaterThanOrEqualTo(String value) {
            addCriterion("exchange >=", value, "exchange");
            return (Criteria) this;
        }

        public Criteria andExchangeLessThan(String value) {
            addCriterion("exchange <", value, "exchange");
            return (Criteria) this;
        }

        public Criteria andExchangeLessThanOrEqualTo(String value) {
            addCriterion("exchange <=", value, "exchange");
            return (Criteria) this;
        }

        public Criteria andExchangeLike(String value) {
            addCriterion("exchange like", value, "exchange");
            return (Criteria) this;
        }

        public Criteria andExchangeNotLike(String value) {
            addCriterion("exchange not like", value, "exchange");
            return (Criteria) this;
        }

        public Criteria andExchangeIn(List<String> values) {
            addCriterion("exchange in", values, "exchange");
            return (Criteria) this;
        }

        public Criteria andExchangeNotIn(List<String> values) {
            addCriterion("exchange not in", values, "exchange");
            return (Criteria) this;
        }

        public Criteria andExchangeBetween(String value1, String value2) {
            addCriterion("exchange between", value1, value2, "exchange");
            return (Criteria) this;
        }

        public Criteria andExchangeNotBetween(String value1, String value2) {
            addCriterion("exchange not between", value1, value2, "exchange");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}